/*
logic for echo server.
**/

#ifndef _DG_ECHO_INCLUDED
#define _DG_ECHO_INCLUDED
#include <netinet/in.h>

void dg_echo(int connfd, struct sockaddr *sa, socklen_t salen);
void dg_echoloop1(int sockfd, struct sockaddr *sa, socklen_t salen);
void dg_echoloop2(int sockfd, struct sockaddr *sa, socklen_t salen);

#endif // _DG_ECHO_INCLUDED
